.layout {
  min-height: 100%;

  .layoutHeader {
    display: flex;
    height: 32px;
    padding-right: 10px;
    padding-left: 10px;
    line-height: 32px;
    background-color: #eaeaea;
  }

  .container {
    display: flex;
    height: calc(100vh - 38px);
  }

  .content {
    box-sizing: border-box;
    flex: 1;
    width: 100%;
    height: 100%;
    padding: 0 20px;
    overflow: auto;
    line-height: 24px;
    word-break: break-all;

    &::-webkit-scrollbar {
      width: 7px;
      height: 1px;
    }

    &::-webkit-scrollbar-thumb {
      background-color: #ede4e0;
      border-radius: 7px;
      box-shadow: none;
    }

    &::-webkit-scrollbar-track {
      background: rgb(0 0 0 / 0%);
      border-radius: 7px;
      box-shadow: none;
    }
  }

  .editorTextarea {
    overflow: auto;
    font-size: 15px;
    resize: none;
    background-color: rgb(248 248 250);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 30%;
    border-color: initial rgb(238 238 238) initial initial;
    border-style: initial solid initial initial;
    border-width: 0 1px 0 0;
    border-image: initial;
    outline: none;
  }

  .write {
    word-break: break-all;
    background-color: #fff;

    img {
      max-width: 35%;
    }

    blockquote {
      padding: 10px 20px;
      margin: 0 0 20px;
      font-size: 17.5px;
      border-left: 5px solid #eee;
    }

    table {
      width: 100%;
      max-width: 65em;
      margin: 15px auto;
      overflow: auto;
      empty-cells: show;
      border-collapse: collapse;
      border: 1px solid #dedede;
    }

    table th,
    table td {
      height: 35px;
      padding: 0 10px;
      border: 1px solid #dedede;
    }

    table th {
      font-weight: bold;
      text-align: center !important;
      white-space: nowrap;
      background: rgb(158 188 226 / 20%);
    }

    table tbody tr:nth-child(2n) {
      background: rgb(158 188 226 / 12%);
    }

    /* stylelint-disable-next-line no-descending-specificity */
    table tr:hover {
      background: #efefef;
    }
  }

  .toc {
    .tocTitle {
      font-size: 18px;
    }

    width: 200px;
    padding: 30px 10px;
    overflow: auto;
    font-weight: bold;
    word-break: break-all;
    background-color: #fff;
    border-left: solid 1px rgb(238 238 238);
  }
}
